﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{   public enum food 
    {
        Chinesecabbage,//白菜
        eggplant,//茄子
        cauliflower//花菜
    }

    class CookRobot:Robot//炒菜机器人类
    {
        private string vegetable;
        public string Vegetable { get; set; }

        public CookRobot(string vegetable,string name,food food) :base(name)
        {
            this.vegetable = vegetable;
            this.Name = name;
        }
        public override void Working()
        {
            Console.WriteLine("我是{0}机器人，你要炒的菜是{1}", base.Name, this.vegetable);
        }
    }
}
